<?php 
include_once($_SERVER["DOCUMENT_ROOT"]."/bolsa_trabajo/util/session_control_admon.php");
include_once($_SERVER["DOCUMENT_ROOT"]."/bolsa_trabajo/dto/admon_dto.php");;
$idAdmon = null;
if ( !empty($_GET['idAdmon'])) {
	$idAdmon = $_REQUEST['idAdmon'];
}

if ( null==$idAdmon ) {
	header("Location: ../index.php");
} else {
	$q = AdmonDTO::readAdmon($idAdmon);
	$data = $q->fetch(PDO::FETCH_ASSOC);
	$nombres = $data['nombres'];
	$apellidos = $data['apellidos'];
	$email  = $data['email'];
	$login = $data['login'];
	$clave = $data['clave'];
//'../home/home_admon.php';//
	}
?>
<!DOCTYPE html>
<html lang="en">
<head><title>- SITRABS - Mi Información</title>
<meta charset="utf-8">
<link href="../css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen"
	href="../css/bootstrap3-datetimepicker.css" />
 <link href="css/style.css" rel="stylesheet">

<script src="../js/bootstrap.min3.js"></script> 
<link href="../css/bootstrap.min3.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen"
	href="../css/bootstrap3-datetimepicker.css" />
 
      <script src="../js/jquery.min.js"></script> 

<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap3-datepicker.js"></script> 
</head>

<body>
	<div class="container">
		
	</div><script type="text/javascript" src="js/bootstrap.min.js"></script> 


 <script type="text/javascript" src="../js/bootstrap.min.js"></script> 
	</div>
	<div class="container">


		
		<div class="span10 offset1">
			<div class="row"> 
				<h3>Ver Informacion de Administrador</h3>
			</div>

			<div class="row">
				<div class="col-md-6">
					<label class="control-label">Id de Administracion</label> <input
						name="idAdmon" type="text" class="form-control"
						readonly="readonly"
						value="<?php echo !empty($idAdmon)?$idAdmon:'';?>" />
				</div>
				<div class="col-md-6">
					<label class="control-label">Login</label> <input name="login"
						type="text" class="form-control" readonly="readonly"
						placeholder="Login" value="<?php echo !empty($login)?$login:'';?>">
				</div>
			</div>

			<div class="row">
				<div class="col-md-6">
					<label class="control-label">Nombres</label> <input name="nombres"
						class="form-control" type="text" readonly="readonly"
						value="<?php echo !empty($nombres)?$nombres:'';?>">
				</div>
				<div class="col-md-6">
					<label class="control-label">Apellidos</label> <input
						name="apellidos" class="form-control" type="text"
						readonly="readonly" placeholder="Apellidos"
						value="<?php echo !empty($apellidos)?$apellidos:'';?>">
				</div>
			</div>

			<div class="row">
		
				<div class="col-md-12">
					<label class="control-label">Email</label> <input name="email"
						class="form-control" type="email" readonly="readonly"
						placeholder="Email" value="<?php echo !empty($email)?$email:'';?>">
				</div>
			</div>


			<br />

			<div class="form-group">
			<center>
				<div>

					<a class="btn btn-default navbar-btn" href="<?php echo $home?>">Regresar a Inicio</a>
					
						
					
				</div></center>
			</div>



		</div>


	</div>
	<script type="text/javascript" src="js/bootstrap.min.js"></script> 


 <script type="text/javascript" src="../js/bootstrap.min.js"></script>

	<!-- /container -->
</body>
</html>
